<?php
class netadmin extends control
{
    /* 构造函数。*/
    public function __construct()
    {
        parent::__construct('');
    }

    /* index方法，也是默认的方法。*/
    public function index()
    {
       // $header['title'] = $this->lang->welcome;
       // $this->assign('header',  $header);
//        $this->assign('content', $this->lang->content);
        $this->assign('content', '变量');
        $this->display();
    }
    
    public function search(){
    	$data = '';
    	
    	$page = helper::createPage();
    	$condition = null;
    	$data = $this->houserent->findPage($page, $condition, '*');
    	
    	$this->assign('data', $data);
    	$this->assign('content', 'search');
    	$this->display();
    }
    
    public function get(){
    	$params = helper::filterParams();
    	$id = (int)$params['id'];
    	$data = '';
    	if($id){
    		$data = $this->demo->get($id);
    	}
    	$this->assign('data', $data);
    	$this->display();
    }
    
    public function admin(){
    	//编辑器
    	//include_once('w.txt');
    	//var_dump(basename($_SERVER['PHP_SELF']));
    	$this->assign('data', 'www');
    	$this->display('netadmin', 'netadmin');
    }
}
